<%@ page language="java" contentType="text/html; charset=UTF-8"
	isErrorPage="true" pageEncoding="UTF-8"%>
<%@ page import="fy.bean.*,java.util.*"%>
<%
 /*  /*   DwgzBean newsBean1 = new DwgzBean();
	List<DwgzBean> newlist1 = newsBean1.finddwgzByLb("lxyz");
	DwgzBean newsBean2 = new DwgzBean();
	List<DwgzBean> newlist2 = newsBean2.finddwgzByLb("shyk"); */ 
	
	DwgzBean dwgzBean = new DwgzBean();
	
    CatelogBean catelogBean = new CatelogBean();
	List<CatelogBean> catelogList = catelogBean.findAllByHLb("dwgz");
	
	String lb =catelogList.get(0).getCategory();
	CatelogBean catelogBean1 = new CatelogBean();
	catelogBean1  = catelogBean1.findAllByLb(lb);
	
	PictureBean picture1 = new PictureBean();
	List<PictureBean> tplb1 = picture1.findsfgkByLb("dblb");
	PictureBean picture3 = new PictureBean();
	List<PictureBean> tplb3 = picture1.findsfgkByLb("lmtp");
%>
<!DOCTYPE html>
<html>
<head>
<title><%=catelogBean1.getHtitlename()%>-赣州经济技术开发区人民法院</title>
<link rel="stylesheet" type="text/css" href="../css/djyl.css">
<link rel="stylesheet" type="text/css" href="../css/1.css">
<link rel="stylesheet" type="text/css" href="../css/2.css">
<link rel="stylesheet" type="text/css" href="../css/3.css">
<link rel="stylesheet" href="../css/css5.css">
<link rel="stylesheet" type="text/css" href="../css/css2.5.css"
	media="screen">
<link type="text/css" rel="stylesheet" href="../css/carousel.css">
<link type="text/css" rel="Stylesheet" href="../css/11.css">
<script src="../js/jquery.js"></script>
<script src="../js/index.js"></script>
<link rel="shortcut icon" type="image/x-icon" href="../img/title.jpg">

<style type="text/css">
a {
	text-decoration: none;
	color: black;
}
</style>
</head>
<body>
	<div style="width: 100%; margin: 0 auto;">
		<div class="c-banner">
			<div class="top_up">
				<div class="top_hare">
					<div class="top_picture">
						<img src="../img/国徽.png">
					</div>
					<div class="top_words">
						<span>赣州经济技术开发区人民法院</span>
					</div>

				</div>
			</div>
			<div class="banner">
				<ul>
					<%
							for (int i = 0; i < tplb1.size(); i++) {
						%>

					<li><img src="<%=tplb1.get(i).getPicture()%>"></li>
					<%
										}
						%>
				</ul>
			</div>

			<script type="text/javascript" src="../js/jquery.js"></script>
			<script type="text/javascript">
					//定时器返回值
					var time = null;
					//记录当前位子
					var nexImg = 0;
					//用于获取轮播图图片个数
					var imgLength = $(".c-banner .banner ul li").length;
					//当时动态数据的时候使用,上面那个删除
					// var imgLength =0;
					//设置底部第一个按钮样式
					$(".c-banner .jumpBtn ul li[jumpImg=" + nexImg + "]").css(
							"background-color", "black");

					//页面加载
					$(document).ready(function() {
						// dynamicData();
						//启动定时器,设置时间为3秒一次
						time = setInterval(intervalImg, 3000);
					});

					//点击上一张
					$(".preImg").click(
							function() {
								//清楚定时器
								clearInterval(time);
								var nowImg = nexImg;
								nexImg = nexImg - 1;
								console.log(nexImg);
								if (nexImg < 0) {
									nexImg = imgLength - 1;
								}
								//底部按钮样式设置
								$(".c-banner .jumpBtn ul li").css(
										"background-color", "white");
								$(
										".c-banner .jumpBtn ul li[jumpImg="
												+ nexImg + "]").css(
										"background-color", "black");

								//将当前图片试用绝对定位,下一张图片试用相对定位
								$(".c-banner .banner ul img").eq(nowImg).css(
										"position", "absolute");
								$(".c-banner .banner ul img").eq(nexImg).css(
										"position", "relative");

								//轮播淡入淡出
								$(".c-banner .banner ul li").eq(nexImg).css(
										"display", "block");
								$(".c-banner .banner ul li").eq(nexImg).stop()
										.animate({
											"opacity" : 1
										}, 1000);
								$(".c-banner .banner ul li").eq(nowImg).stop()
										.animate(
												{
													"opacity" : 0
												},
												1000,
												function() {
													$(".c-banner ul li").eq(
															nowImg).css(
															"display", "none");
												});

								//启动定时器,设置时间为3秒一次
								time = setInterval(intervalImg, 3000);
							})

					//点击下一张
					$(".nexImg").click(function() {
						clearInterval(time);
						intervalImg();
						time = setInterval(intervalImg, 3000);
					})

					//轮播图
					function intervalImg() {
						if (nexImg < imgLength - 1) {
							nexImg++;
						} else {
							nexImg = 0;
						}

						//将当前图片试用绝对定位,下一张图片试用相对定位
						$(".c-banner .banner ul img").eq(nexImg - 1).css(
								"position", "absolute");
						$(".c-banner .banner ul img").eq(nexImg).css(
								"position", "relative");

						$(".c-banner .banner ul li").eq(nexImg).css("display",
								"block");
						$(".c-banner .banner ul li").eq(nexImg).stop().animate(
								{
									"opacity" : 1
								}, 1000);
						$(".c-banner .banner ul li").eq(nexImg - 1).stop()
								.animate(
										{
											"opacity" : 0
										},
										1000,
										function() {
											$(".c-banner .banner ul li").eq(
													nexImg - 1).css("display",
													"none");
										});
						$(".c-banner .jumpBtn ul li").css("background-color",
								"white");
						$(".c-banner .jumpBtn ul li[jumpImg=" + nexImg + "]")
								.css("background-color", "black");
					}

					//轮播图底下按钮
					//动态数据加载的试用应放在请求成功后执行该代码,否则按钮无法使用
					$(".c-banner .jumpBtn ul li")
							.each(
									function() {
										//为每个按钮定义点击事件
										$(this)
												.click(
														function() {
															clearInterval(time);
															$(
																	".c-banner .jumpBtn ul li")
																	.css(
																			"background-color",
																			"white");
															jumpImg = $(this)
																	.attr(
																			"jumpImg");
															if (jumpImg != nexImg) {
																var after = $(
																		".c-banner .banner ul li")
																		.eq(
																				jumpImg);
																var befor = $(
																		".c-banner .banner ul li")
																		.eq(
																				nexImg);

																//将当前图片试用绝对定位,下一张图片试用相对定位
																$(
																		".c-banner .banner ul img")
																		.eq(
																				nexImg)
																		.css(
																				"position",
																				"absolute");
																$(
																		".c-banner .banner ul img")
																		.eq(
																				jumpImg)
																		.css(
																				"position",
																				"relative");

																after
																		.css(
																				"display",
																				"block");
																after
																		.stop()
																		.animate(
																				{
																					"opacity" : 1
																				},
																				1000);
																befor
																		.stop()
																		.animate(
																				{
																					"opacity" : 0
																				},
																				1000,
																				function() {
																					befor
																							.css(
																									"display",
																									"none");
																				});
																nexImg = jumpImg;
															}
															$(this)
																	.css(
																			"background-color",
																			"black");
															time = setInterval(
																	intervalImg,
																	3000);
														});
									});
				</script>
		</div>
		<div class="content_box">
			<div class="category_hr"></div>
			<div class="category">
				<div id="nav">
					<ul style="font: black">
						<li><a href="../index.jsp"> 首页</a></li>
						<li><a href="../courtintroduce/courtintroduce.jsp"> 法院介绍
						</a></li>
						<li><a href="../dwgz/dwgz.jsp"> 党建引领 </a></li>
						<li><a href="../newscenter/newcenter.jsp"> 新闻中心 </a></li>
						<li><a href="../sfgk/ggl.jsp"> 司法公开 </a></li>
						<li style="width: 140px;"><a href="../ssfwzx/yyla.jsp">
								诉讼服务中心 </a></li>
						<li><a href="../fywh/whzb.jsp"> 法院文化 </a></li>
						<li style="border-right: 0px"><a href="../zxhd/yzxx.jsp">
								在线互动 </a></li>

					</ul>
				</div>

				<div class="new_menu"></div>
				<div class="new_menu_title">
					<!-- <div class="new2"></div> -->
					<div class="new1">
						<div class="new_menu_title_word">
							<a href="dwgz.jsp">&nbsp;<%=catelogBean1.getHtitlename()%>
							</a>
						</div>
					</div>


					<!-- 		<div class="new3">
				<a href="dwgzlb.jsp?category=lxyz" style="font-size: 25px"> <center> 两学一做</center></a>
			</div>
			<div class="new3">
				<a href="dwgzlb.jsp?category=shyk" style="font-size: 25px"><center> 三会一课</center></a>
			</div>
			 -->

					<% for(int i = 0; i <catelogList.size();i++){%>
					<div class="new3">
						<a
							href="dwgzlb.jsp?category=<%=catelogList.get(i).getCategory() %>">
							<center>
								<%=catelogList.get(i).getTitlename()%></center>
						</a>
					</div>

					<% }%>


					<%
							for (int i = 0; i < tplb3.size(); i++) {
						%>
					<div class="new4" id="#boxshadow">
						<a href="<%=tplb3.get(i).getLink()%>"> <img
							src="<%=tplb3.get(i).getPicture()%>">
						</a>
					</div>
					<%
										}
						%>

					<div class="tb">
						<a href="../zxhd/yzxx.jsp"><img src="../img/1.gif"></a>
					</div>
					<div class="tb">
						<a href="http://jubao.court.gov.cn/E7J"><img
							src="../img/2.gif"></a>
					</div>
				</div>
				<div class="news_content">
					<div class="news_content_top">
						<div class="news_content_word"">
							<a href="../index.jsp" style="font-size: 18px">首页</a> >><a
								href="dwgz.jsp" style="font-size: 18px"><%=catelogBean1.getHtitlename()%>
							</a>
						</div>

						<%for(int i=0;i<catelogList.size();i++){ %>

						<div class="new5">
							<div style="width: 100%; height: 30px; margin-top: 20px;">
								<a
									href="dwgzlb.jsp?category=<%=catelogList.get(i).getCategory() %>"
									class="button" style="font-size: 25px; text-ali gn: center"><%=catelogList.get(i).getTitlename()%></a>
							</div>
						</div>

						<div class="new7">
							<% for(int j = 0; j <dwgzBean.finddwgzByLb(catelogList.get(i).getCategory()).size();j++){
                 //输出法院动态的前5条数据
                    if(j >4)
                    {
                       continue;
                    }%>
							<div class="new6">
								<div class="new19">
									<a
										href="content.jsp?id=<%= dwgzBean.finddwgzByLb(catelogList.get(i).getCategory()).get(j).getId() %>"
										style="font-size: 18px;"><%= dwgzBean.finddwgzByLb(catelogList.get(i).getCategory()).get(j).getTitle()%></a>
								</div>
								<div class="new21"><%= dwgzBean.finddwgzByLb(catelogList.get(i).getCategory()).get(j).getTime()%></div>
							</div>
							<% }%>
						</div>

						<% }%>


					</div>

				</div>

			</div>
		</div>
	<div style="clear: both;"></div>
	<div class="tail_son">
			<div class="tail_line" style="margin-top: 25px;"></div>
			<div class="div22">
				<div class="tail_son_content">
					<div class="tail_son_picture">
						<a
							href="http://bszs.conac.cn/sitename?method=show&id=29975AEF1BAB5BBDE053012819AC83CC">
							<img src="../img\a1.jpg">
						</a>
					</div>
					<div class="tail_son_words">
						Copyright 2014 www.gzjkqfy.gov.cn All Rights Reserved<br>
						赣ICP备14009074号<br> 赣州经济技术开发区人民法院 主办<br> 电话：0797-8375993
						<br> 技术支持：深圳市易当家软件开发有限公司
					</div>
				</div>
			</div>
		</div>

	</div>
</body>
</html>